<?php echo $this->fetch('header.html'); ?>
<div class="title tc ml-30 mr-10">
	<h2>产品分类</h2>
</div>
<div class="content px-20 mb-10">
<?php $_from = $this->_var['price_class_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'price_class');if (count($_from)):
    foreach ($_from AS $this->_var['price_class']):
?>
<p class="tc mt-30">
	<span id="price_cat_<?php echo $this->_var['price_class']['product_class_id']; ?>" class="btn w-150" style="display:inline-block" data-href="/index.php?act=price&st=query&id=<?php echo $this->_var['price_class']['product_class_id']; ?>"><?php echo $this->_var['price_class']['class_name']; ?></span>
</p>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
</div>
<script type="text/javascript">
$(function(){
	$(".btn").on("click",function(){
		window.location.href = $(this).attr('data-href');
	});	
});
</script>
<?php echo $this->fetch('footer.html'); ?>